
<div class="x_panel">
  <div class="x_content" style="display: block;">
    <!--表格主体内容-->
    <div class="row-fluid">
      <form action="/goods/change-price.html" method="get">
        <label class="control-label">审核状态</label>
        <select  class="form-control-new" name="form[audit_status]" >
          <option {if !isset($query.audit_status) || $query.audit_status==-1}selected="selected"{/if} value="-1">全部</option>
          <option {if isset($query.audit_status) && $query.audit_status==0}selected="selected"{/if} value="0">未审核</option>
          <option {if isset($query.audit_status) && $query.audit_status==1}selected="selected"{/if} value="1">审核通过</option>
          <option {if isset($query.audit_status) && $query.audit_status==2}selected="selected"{/if} value="2">审核不通过</option>
        </select>
        <label class="control-label">申请时间</label>
        <input type="text"  name="form[start_time]" value="{if isset($query.start_time)}{$query.start_time}{/if}" placeholder="开始时间" id="J_dh_start" class="form-control-new" >
        <input type="text"  name="form[end_time]" value="{if isset($query.end_time)}{$query.end_time}{/if}" placeholder="结束时间" id="J_dh_end" class="form-control-new" >
        <button type="submit" class="btn btn-primary" >查询</button>
      </form>

    </div>
    <br>
    <div class="cont">
      <table class="table table-bordered table-striped">
        <thead>
        <tr>
          <!--<th width="100px"></th>-->
          <th>审核状态</th>
          <th>申请人</th>
          <th>申请时间</th>
          <th>审核时间</th>
          <th>修改类型</th>
          <th>价格基础</th>
          <th>修改模式</th>
          <th>修改幅度</th>
          <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {foreach $audit.lists as $goodsitem}
        <tr>
          <!--<td><input type="checkbox" name="form[audit_id]" value="{$goodsitem.audit_id}"/></td>-->
          <td>{if $goodsitem.audit_status==0}未审核{elseif $goodsitem.audit_status==1}审核已通过{else}审核不通过{/if}</td>
          <td>{$goodsitem.sex_name}</td>
          <td>{$goodsitem.add_time}</td>
          <td>{$goodsitem.audit_time}</td>
          <td>{if $goodsitem.price_type==0}严选价{elseif $goodsitem.price_type==1}自定义{/if}</td>
          <td>{if $goodsitem.price_base==0}严选价{elseif $goodsitem.price_base==1}合约价{/if}</td>
          <td>{if $goodsitem.price_model==0}上升{elseif $goodsitem.price_model==1}下降{/if}</td>
          <td>{$goodsitem.price_count}</td>
          <td>
            <div class="x_content">
              <a class="btn btn-primary btn-xs" href="{eval U(['goods/audit','id'=>$goodsitem.audit_id])}"> 审核</a>
              <a class="btn btn-primary btn-xs" href="{eval U(['goods/export-audit','id'=>$goodsitem.audit_id])}"> 导出价格产品清单</a>
            </div>
          </td>
        </tr>
        {/foreach}
        </tbody>
      </table>
      <!--分页-->
      {Yii::$app->view->render('/com/pager.php',['pager'=>$audit.pager])}

    </div>




  </div>
</div>



<script type="text/javascript" src="{$theme}/libs/js/datepicker/bootstrap-datetimepicker.min.js"></script>
<script>
    var startDate = $('#J_dh_start').datetimepicker({
        format: "yyyy-MM-dd",
        autoclose: true,
        todayBtn: true,
        minView: 2,
    })

    var endDate = $('#J_dh_end').datetimepicker({
        format: "yyyy-MM-dd",
        autoclose: true,
        todayBtn: true,
        minView: 2,
    })

</script>
